﻿@model SportMeetingPlanner.Models.Meeting
@{
    ViewBag.Title = "Edit " + @Model.Title;
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
@using (Html.BeginForm("Edit", "Meeting"))
{
    @Html.HiddenFor(model => model.MeetingId)
    @Html.HiddenFor(model => model.SportId)
    <br />
    <div class="section">
        <table class="listTable" cellspacing="0">
            <tr>
                <td class="leftColumn">
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Title)
                    </div>
                </td>
                <td class="rightColumn">
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Title)
                    </div>
                </td>
            </tr>
            <tr>
                <td class="leftColumn">
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Description)
                    </div>
                </td>
                <td class="rightColumn">
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Description)
                    </div>
                </td>
            </tr>
            <tr>
                <td class="leftColumn">
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Location)
                    </div>
                </td>
                <td class="rightColumn">
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Location)
                    </div>
                </td>
            </tr>
            <tr>
                <td class="leftColumn">
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Date)
                    </div>
                </td>
                <td class="rightColumn">
                    <div class="editor-field">
                        @Html.TextBox("Date", Model.Date.ToString("dd'/'MM'/'yyyy"), new { @class = "date", @autocomplete = "off" })
                    </div>
                </td>
            </tr>
            <tr>
                <td class="leftColumn">
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Contact)
                    </div>
                </td>
                <td class="rightColumn">
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Contact)
                    </div>
                </td>
            </tr>
            <tr>
                <td class="leftColumn">
                    <div class="editor-label">
                        @Html.LabelFor(model => model.Telephone)
                    </div>
                </td>
                <td class="rightColumn">
                    <div class="editor-field">
                        @Html.EditorFor(model => model.Telephone)
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <br />
                </td>
                <td>
                </td>
            </tr>
            <tr class="link">
                <td colspan="2" class="leftColumn">
                    <input type="submit" value="Save" />
                </td>
            </tr>
            <tr class="back">
                <td colspan="2">
                    @Html.ActionLink("Back to List", "Index", new { sportid = Model.Sport.SportId })
                </td>
            </tr>
        </table>
    </div>
}
